// 智慧科创
import request from '@/utils/request'

// 新增项目信息
export function addProjectInfo(data) {
  return request({
    method: 'post',
    url: 'zhkc/project/saveOrUpdate',
    data: data
  })
}

// 查询项目列表
export function queryProjectList(params) {
  return request({
    method: 'get',
    url: 'zhkc/project/query',
    params
  })
}

// 删除项目
export function deleteProjectInfo(pkid) {
  return request({
    method: 'delete',
    url: `zhkc/project/removeById?pkid=${pkid}`
  })
}

// 查询项目列表
export function queryProjectDetail(pkid) {
  return request({
    method: 'get',
    url: `zhkc/project/queryById?pkid=${pkid}`
  })
}

// 合作事项新增
export function addCooperation(data) {
  return request({
    method: 'post',
    url: 'zhkc/hzsx/saveOrUpdate',
    data: data
  })
}
// 合作事项列表
export function queryCooperationList(params) {
  return request({
    method: 'get',
    url: 'zhkc/hzsx/query',
    params
  })
}
// 合作事项详情
export function queryCooperationDetail(pkid) {
  return request({
    method: 'get',
    url: `zhkc/hzsx/queryById?pkid=${pkid}`
  })
}
// 合作事项删除
export function deleteCooperation(pkid) {
  return request({
    method: 'delete',
    url: `zhkc/hzsx/removeById?pkid=${pkid}`
  })
}
